<?php
if(is_user_logged_in()){
?>
	<ul class="nav navbar-nav navbar-right">
        <li id="logout">
            <a href=" <?php echo wp_logout_url( '/' ); ?> ">
                <img src="<?php echo get_template_directory_uri(); ?>/images/logout.png" alt="Salir de mi cuenta" title="Salir de mi cuenta" />
            </a>
        </li>
        <li id="config">
            <a href="<?php echo Helpers::get_profile_url();?>">
                <img src="<?php echo get_template_directory_uri(); ?>/images/settings.png" alt="Ver mi perfil" title="Ver mi perfil" />
            </a>
        </li>
        <li id="help">
            <a href="<?php echo Helpers::get_help_url();?>">
                <img src="<?php echo get_template_directory_uri(); ?>/images/support.png" alt="Ver ayuda" title="Ver ayuda" />
            </a>
        </li>
                    
    </ul>
<?php	
}else{

   
?>
		 <form class="navbar-form navbar-right" role="search" method="POST">
            <input type="hidden" name="kind" value="top-login-form">
            <div id="msg-error"></div>
            <div class="form-group">
                <input type="text" maxlength="11"  onkeypress="return justNumbers(event);" class="form-control" name="username" placeholder="RUC">
                
            </div>
            <div class="form-group">
                <input type="password" class="form-control" name="password" placeholder="Contrase&ntilde;a">
            </div>
            <button id="login-button" type="submit" class="btn btn-default btn-success">INGRESA</button>

            <div id="login_part">
                <a href="#" id="register-link" class="green-text">Reg&iacute;strate</a> en un solo paso 
                <a href="/forgot-password" id="forgot-link" class="spaced green-text">Olvid&eacute; mi contrase&ntilde;a</a>
            </div>
        </form>

        <?php get_template_part('modal','register');?>
        <?php get_template_part('modal','forgot');?>

        
       
<?php
}
?>